package com.aspire.boc.mms.gwcmp.util.enums;

/**
 * 服务种类枚举
 * 1.三网 2.移动 3.联通 4.电信 5.联通、电信 6.移动、联通 7.移动、电信
 * @author liming
 *
 */
public enum ServiceType {

	ALL("1","三网"),CMCC("2", "移动"), UNICOM("3", "联通"),TELCOM("4", "电信"),
	UNICOM_TELCOM("5","联通、电信"),CMCC_UNICOM("6","移动、联通"),CMCC_TELCOM("7","移动、电信");
	
    private ServiceType(String id, String strValue) {
    	this.strKey = id;
        this.strValue = strValue;
    }

    private String strKey;
    private String strValue;

    public static ServiceType getResStringByKey(String strKey) {
    	
        for (ServiceType item : values()) {
            if (item.strKey.equals(strKey))
                return item;
        }
        return null;
    }
    
    public static ServiceType getResStringByValue(String strValue) {
    	
        for (ServiceType item : values()) {
            if (item.strValue.equals(strValue))
                return item;
        }
        return null;
    }

    public String getStrValue() {

        return strValue;
    }
    
}
